package www.openteam.com.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 订单
 * Created by kylin on 2016/10/10.
 */

public class ProOrder {

    private List<DataEntity> data;


    public List<DataEntity> getData() {
        return data;
    }


    public static class DataEntity implements Parcelable {
        /**
         * rownumber : 1
         * id : 5133
         * rdsno : SPA16040669
         * userid : 103
         * custname : 外购
         * custSName : 外购
         * moneyName : 人民币  RMB
         * inputdate : 2016-04-14
         * prodno : 5005-hyq001
         * prodname : 枪
         * paynumb : <numb>3.000</numb>
         * price : <price>0.010000</price>
         * submoney : <submoney>0.0300</submoney>
         * orderamount : .0300
         * statusn : 已生产
         */

        private String rownumber;
        private int id;
        private String rdsno;
        private int userid;
        private String custname;
        private String custSName;
        private String moneyName;
        private String inputdate;
        private String prodno;
        private String prodname;
        private String paynumb;
        private String price;
        private String submoney;
        private String orderamount;
        private String statusn;


        public String getRownumber() {
            return rownumber;
        }

        public void setRownumber(String rownumber) {
            this.rownumber = rownumber;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getRdsno() {
            return rdsno;
        }

        public void setRdsno(String rdsno) {
            this.rdsno = rdsno;
        }

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getCustname() {
            return custname;
        }

        public void setCustname(String custname) {
            this.custname = custname;
        }

        public String getCustSName() {
            return custSName;
        }

        public void setCustSName(String custSName) {
            this.custSName = custSName;
        }

        public String getMoneyName() {
            return moneyName;
        }

        public void setMoneyName(String moneyName) {
            this.moneyName = moneyName;
        }

        public String getInputdate() {
            return inputdate;
        }

        public void setInputdate(String inputdate) {
            this.inputdate = inputdate;
        }

        public String getProdno() {
            return prodno;
        }

        public void setProdno(String prodno) {
            this.prodno = prodno;
        }

        public String getProdname() {
            return prodname;
        }

        public void setProdname(String prodname) {
            this.prodname = prodname;
        }

        public String getPaynumb() {
            return paynumb;
        }

        public void setPaynumb(String paynumb) {
            this.paynumb = paynumb;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getSubmoney() {
            return submoney;
        }

        public void setSubmoney(String submoney) {
            this.submoney = submoney;
        }

        public String getOrderamount() {
            return orderamount;
        }

        public void setOrderamount(String orderamount) {
            this.orderamount = orderamount;
        }

        public String getStatusn() {
            return statusn;
        }

        public void setStatusn(String statusn) {
            this.statusn = statusn;
        }

        @Override
        public int describeContents() {
            return 0;
        }


        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(id);
            dest.writeInt(userid);
            dest.writeString(rownumber);
            dest.writeString(statusn);
            dest.writeString(orderamount);
            dest.writeString(submoney);
            dest.writeString(price);
            dest.writeString(paynumb);
            dest.writeString(prodname);
            dest.writeString(prodno);
            dest.writeString(inputdate);
            dest.writeString(moneyName);
            dest.writeString(custSName);
            dest.writeString(custname);
            dest.writeString(rdsno);
        }


        public static final Creator<DataEntity> CREATOR = new Creator<DataEntity>() {
            @Override
            public DataEntity createFromParcel(Parcel source) {
                return new DataEntity(source);
            }

            @Override
            public DataEntity[] newArray(int size) {
                return new DataEntity[size];
            }
        };


        public DataEntity(Parcel in) {
            id = in.readInt();
            userid = in.readInt();
            rownumber = in.readString();
            statusn = in.readString();
            orderamount = in.readString();
            submoney = in.readString();
            price = in.readString();
            paynumb = in.readString();
            prodname = in.readString();
            prodno = in.readString();
            inputdate = in.readString();
            moneyName = in.readString();
            custSName = in.readString();
            custname = in.readString();
            rdsno = in.readString();

        }
    }
}
